package com.xiaoma.spring.factorybean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {

    @Bean
    public Car getCar(){
        Car car = new Car();
        car.setName("car1");
        return car;
    }
}
